<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    </style>
    <script src="../js/js.vue.js"></script>
</head>
<body>
    <div id="box">
         <hello></hello>
    </div>
    <script>
    let app=Vue.createApp({
        components:{
            hello:{
                 template:`
                 
                 <h1>hellokiity</h1>
                 <world></world>
                `
            }
        },
            data(){//实例属性
                 return{

                }
            }
        
        });
        app.component('world',{
            template:`
                 <h1>hellokiity猫</h1> 
                `  
        })
        app.mount("#box")
    </script>
</body>
</html>